﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebForms/SiteWF.master" AutoEventWireup="true" CodeBehind="RoomView.aspx.cs" Inherits="WaterfrontLodge.WebForms.RoomMgt.RoomView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<fieldset>
    <legend>Room List (<asp:Label ID="Label2" runat="server" Text="Label" Font-Bold="True" Font-Size="Small"></asp:Label>)</legend>

    <asp:GridView ID="grdRoomView" runat="server" AllowSorting="True" 
        onrowdatabound="grdRoomView_RowDataBound" AutoGenerateColumns="False" >
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:HyperLink runat="server" ID="hlkEdit">Edit</asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="Room No."  DataField  = "RoomNo"/>
            <asp:BoundField HeaderText="Type" DataField = "Description"/>
            <asp:BoundField HeaderText="Type Code" DataField = "TypeCode" Visible = "false"/>
            <asp:BoundField HeaderText="Status" DataField = "RoomStatus"/>
            <asp:BoundField HeaderText="Max. Occupant" DataField = "MaxOccupant"  />
            <asp:BoundField HeaderText="Standard Price (S$)" DataField = "PriceInDollar"  />
            <asp:BoundField HeaderText="Remarks"  DataField = "Remarks"  ItemStyle-HorizontalAlign = "Left"/>
            <asp:BoundField HeaderText="Created DateTime" DataField = "CreatedDateTime"  Visible = "false"/>
        </Columns>
    </asp:GridView>

    <br />
    <asp:Button ID="Button1" runat="server" PostBackUrl="~/WebForms/Room/RoomSearch.aspx" Text="Back" />&nbsp;&nbsp;
    <asp:Button ID="btnCreate" runat="server" onclick="btnCreate_Click" Text="Create New" />
</fieldset>
</asp:Content>
